package com.dlee.mvc.container;

/**
* 上下文环境
* @author lida
* @since JDK1.7
* @history 2012-7-14 lida
*/
public final class ContextEnvironment
{
    private String annotationScanPath;

    private String contextPath;

    public ContextEnvironment (Builder builder)
    {
        annotationScanPath = builder.annotationScanPath;
        contextPath = builder.contextPath;
    }

    public static class Builder
    {
        private String annotationScanPath;

        private String contextPath;

        public String getAnnotationScanPath ()
        {
            return annotationScanPath;
        }

        public Builder setAnnotationScanPath (String annotationScanPath)
        {
            this.annotationScanPath = annotationScanPath;
            return this;
        }

        public String getContextPath ()
        {
            return contextPath;
        }

        public Builder setContextPath (String contextPath)
        {
            this.contextPath = contextPath;
            return this;
        }

        public ContextEnvironment builder ()
        {
            return new ContextEnvironment (this);
        }
    }

    public String getAnnotationScanPath ()
    {
        return annotationScanPath;
    }

    public void setAnnotationScanPath (String annotationScanPath)
    {
        this.annotationScanPath = annotationScanPath;
    }

    public String getContextPath ()
    {
        return contextPath;
    }

    public void setContextPath (String contextPath)
    {
        this.contextPath = contextPath;
    }
}
